package com.langsin.blog.dao;

import com.langsin.blog.domain.Roles;
import com.langsin.blog.domain.User;

import java.util.List;

public interface UserDao {
    User userSelectByAccount(String account);
    User userSelectById(int id);
    List<User> userSelectByNickname(String nickname);
    boolean userAdd(User user);
    boolean userModify(int id,String prop,String p);
    boolean userModifyRoles(int id, String prop, Roles roles);
}